<?php $this->load->view('includes/header'); ?>

<?php
	$name = array(
		'name'		=>		'name',
		'id'		=>		'name',
		'value'		=>		set_value('name')
	);
		
	$email = array(
		'name'		=>		'email',
		'id'		=>		'email',
		'value'		=>		set_value('email')
	);
	
	$login = array(
		'name'		=>		'login',
		'id'		=>		'login',
		'value'		=>		set_value('login')
	);
	
	$pwd = array(
		'name'		=>		'pwd',
		'id'		=>		'pwd',
		'value'		=>		'',
	);

	$pwd2 = array(
		'name'		=>		'pwd2',
		'id'		=>		'pwd2',
		'value'		=>		'',
	);
	?>
	
	
<h1>Create an Account</h1>

<div id="register">

<fieldset>

	<legend>Personal Information</legend>
	
	<?php echo form_open('login/create_member'); ?>
		
		<label>Name</label>
		<?php echo form_input($name); ?>
		
		<label>Email Adress</label>
		<?php echo form_input($email); ?>
	
</fieldset>

<fieldset>

	<legend>Login Info</legend>
	
		<label>Username</label>
		<?php echo form_input($login); ?>
		
		<label>Password</label>
		<?php echo form_password($pwd); ?>
		
		<label>Password Confirmation</label>
		<?php echo form_password($pwd2); ?>
		
		<?php echo form_submit('submit', 'Create Account'); ?>
	
	<?php echo validation_errors('<p class="error">'); ?>
	
</fieldset>

</div>

<?php $this->load->view('includes/footer'); ?>
